Integrand size = 20, antiderivative size = 70 \[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}+\frac {b \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{d \sqrt {c^2 d-e}} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {197, 5032, 12, 455, 65, 214} \[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}+\frac {b \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{d \sqrt {c^2 d-e}} \]
[In]
[Out]
Rule 12
Rule 65
Rule 197
Rule 214
Rule 455
Rule 5032
Rubi steps \begin{align*} \text {integral}& = \frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}-(b c) \int \frac {x}{d \left (1+c^2 x^2\right ) \sqrt {d+e x^2}} \, dx \\ & = \frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}-\frac {(b c) \int \frac {x}{\left (1+c^2 x^2\right ) \sqrt {d+e x^2}} \, dx}{d} \\ & = \frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}-\frac {(b c) \text {Subst}\left (\int \frac {1}{\left (1+c^2 x\right ) \sqrt {d+e x}} \, dx,x,x^2\right )}{2 d} \\ & = \frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}-\frac {(b c) \text {Subst}\left (\int \frac {1}{1-\frac {c^2 d}{e}+\frac {c^2 x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{d e} \\ & = \frac {x (a+b \arctan (c x))}{d \sqrt {d+e x^2}}+\frac {b \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{d \sqrt {c^2 d-e}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.21 (sec) , antiderivative size = 202, normalized size of antiderivative = 2.89 \[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\frac {\frac {2 a x}{\sqrt {d+e x^2}}+\frac {2 b x \arctan (c x)}{\sqrt {d+e x^2}}+\frac {b \log \left (-\frac {4 c d \left (c d-i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} (i+c x)}\right )}{\sqrt {c^2 d-e}}+\frac {b \log \left (-\frac {4 c d \left (c d+i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} (-i+c x)}\right )}{\sqrt {c^2 d-e}}}{2 d} \]
[In]
[Out]
\[\int \frac {a +b \arctan \left (c x \right )}{\left (e \,x^{2}+d \right )^{\frac {3}{2}}}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 173 vs. \(2 (62) = 124\).
Time = 0.32 (sec) , antiderivative size = 388, normalized size of antiderivative = 5.54 \[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\left [\frac {{\left (b e x^{2} + b d\right )} \sqrt {c^{2} d - e} \log \left (\frac {c^{4} e^{2} x^{4} + 8 \, c^{4} d^{2} - 8 \, c^{2} d e + 2 \, {\left (4 \, c^{4} d e - 3 \, c^{2} e^{2}\right )} x^{2} + 4 \, {\left (c^{3} e x^{2} + 2 \, c^{3} d - c e\right )} \sqrt {c^{2} d - e} \sqrt {e x^{2} + d} + e^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 4 \, \sqrt {e x^{2} + d} {\left ({\left (b c^{2} d - b e\right )} x \arctan \left (c x\right ) + {\left (a c^{2} d - a e\right )} x\right )}}{4 \, {\left (c^{2} d^{3} - d^{2} e + {\left (c^{2} d^{2} e - d e^{2}\right )} x^{2}\right )}}, \frac {{\left (b e x^{2} + b d\right )} \sqrt {-c^{2} d + e} \arctan \left (-\frac {{\left (c^{2} e x^{2} + 2 \, c^{2} d - e\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d}}{2 \, {\left (c^{3} d^{2} - c d e + {\left (c^{3} d e - c e^{2}\right )} x^{2}\right )}}\right ) + 2 \, \sqrt {e x^{2} + d} {\left ({\left (b c^{2} d - b e\right )} x \arctan \left (c x\right ) + {\left (a c^{2} d - a e\right )} x\right )}}{2 \, {\left (c^{2} d^{3} - d^{2} e + {\left (c^{2} d^{2} e - d e^{2}\right )} x^{2}\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\int \frac {a + b \operatorname {atan}{\left (c x \right )}}{\left (d + e x^{2}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \arctan (c x)}{\left (d+e x^2\right )^{3/2}} \, dx=\int \frac {a+b\,\mathrm {atan}\left (c\,x\right )}{{\left (e\,x^2+d\right )}^{3/2}} \,d x \]
[In]
[Out]